package com.course.testng.groups;

import org.testng.annotations.AfterGroups;
import org.testng.annotations.BeforeGroups;
import org.testng.annotations.Test;

public class methodOnGroups {
    @Test(groups = "server")
    public void test1(){
        System.out.println("服务端==============1");
    }

    @Test(groups = "server")
    public void test2(){
        System.out.println("服务端==============2");
    }

    @Test(groups = "client")
    public void client1(){
        System.out.println("客户端==============1");
    }

    @Test(groups = "client")
    public void client2(){
        System.out.println("客户端==============2");
    }

    @BeforeGroups("server")
    public void beforeGroupOnServer(){
        System.out.println("服务端Groups===========before");
    }

    @AfterGroups("server")
    public void afterGroupServer(){
        System.out.println("服务端Groups===========after");
    }
}
